package com.ztesoft.ossup.report.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class BaseChart implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String title="";// 图表标题
	String titleForPie="";// 饼图图表标题
	String subTitle="";// 图表子标题
	Integer borderWidth= 1;
	String borderColor ="rgb(215,215,215)";
	String borderSkipped="bottom";
	String xAxesTitle="";// 横坐标标题
	String yAxesTitle="";// 纵坐标标题
	
	
	String[] types={};// 类型：line：折线图；bar：柱状图；pie：饼图
	
	
	String[] pieChartLabels={};//饼图各部分名称
	List<BasePieChartData> pieChartDatas=new ArrayList<>();// 饼图数据
	
	List<BaseChartData> chartDatas=new ArrayList<>();// 柱状图、折线图数据：name：显示名称,data(和横坐标数据数组长度一样),backgroundColor：背景颜色,例子：rgba(220,120,220,1)
	String[] xAxesLabels={};// 横坐标刻度数据
	
	public String[] getType() {
		return types;
	}

	public void setTypes(String[] types) {
		this.types = types;
	}

	public List<BaseChartData> getChartDatas() {
		return chartDatas;
	}

	public String[] getxAxesLabels() {
		return xAxesLabels;
	}

	public void setxAxesLabels(String[] xAxesLabels) {
		this.xAxesLabels = xAxesLabels;
	}

	public String getxAxesTitle() {
		return xAxesTitle;
	}

	public void setxAxesTitle(String xAxesTitle) {
		this.xAxesTitle = xAxesTitle;
	}

	public String getyAxesTitle() {
		return yAxesTitle;
	}

	public void setyAxesTitle(String yAxesTitle) {
		this.yAxesTitle = yAxesTitle;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSubTitle() {
		return subTitle;
	}

	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}

	
	public List<BasePieChartData> getPieChartDatas() {
		return pieChartDatas;
	}

	public void setPieChartDatas(List<BasePieChartData> pieChartDatas) {
		this.pieChartDatas = pieChartDatas;
	}

	public Integer getBorderWidth() {
		return borderWidth;
	}

	public void setBorderWidth(Integer borderWidth) {
		this.borderWidth = borderWidth;
	}

	public String getBorderColor() {
		return borderColor;
	}

	public void setBorderColor(String borderColor) {
		this.borderColor = borderColor;
	}

	public String getBorderSkipped() {
		return borderSkipped;
	}

	public void setBorderSkipped(String borderSkipped) {
		this.borderSkipped = borderSkipped;
	}

	public String[] getPieChartLabels() {
		return pieChartLabels;
	}

	public void setPieChartLabels(String[] pieChartLabels) {
		this.pieChartLabels = pieChartLabels;
	}

	public String[] getTypes() {
		return types;
	}

	public void setChartDatas(List<BaseChartData> chartDatas) {
		this.chartDatas = chartDatas;
	}

	public String getTitleForPie() {
		return titleForPie;
	}

	public void setTitleForPie(String titleForPie) {
		this.titleForPie = titleForPie;
	}

	@Override
	public String toString() {
		return "BaseChart [title=" + title + ", titleForPie=" + titleForPie + ", subTitle=" + subTitle
				+ ", borderWidth=" + borderWidth + ", borderColor=" + borderColor + ", borderSkipped=" + borderSkipped
				+ ", types=" + Arrays.toString(types) + ", xAxesTitle=" + xAxesTitle + ", yAxesTitle=" + yAxesTitle
				 + ", pieChartLabels=" + Arrays.toString(pieChartLabels) + ", pieChartDatas="
				+ pieChartDatas + ", chartDatas=" + chartDatas + ", xAxesLabels=" + Arrays.toString(xAxesLabels) + "]";
	}
	
	
	
	
	
	

}
